package exercise7;
import java.util.Scanner;
public class Binary extends BaseExample {
	public int parseBinary(String binaryString) {
	       this.logger.debug("输出十进制：");
	       return Integer.parseInt(binaryString,2);
	}
	public void print() {
		@SuppressWarnings("resource")
		Scanner in=new Scanner(System.in);
		this.logger.debug("请输入二进制的数值");
		String string=in.next();
		this.logger.debug(parseBinary(string));
	}
}

